package com.apes.fico.engine.repository;

import com.apes.fico.engine.model.VoucherTemplate;
import com.apes.framework.jpa.repository.CustomRepository;

import java.util.List;

public interface VoucherTemplateRepository extends CustomRepository<VoucherTemplate,String> {

    List<VoucherTemplate> findAllByCycleAndValid(String cycle, boolean valid);
    List<VoucherTemplate> findAllByCompany_IdAndVoucherTemplateGroup_Id(String company,String group);
    List<VoucherTemplate> findAllByCompanyIsNullAndVoucherTemplateGroup_Id(String id);
    List<VoucherTemplate> findAllByBusinessType_idOrderByIdAsc(String id);

}
